//
//  SingleTon.m
//  GiftSpeak
//
//  Created by dllo on 15/10/8.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "SingleTon.h"

@implementation SingleTon

+ (instancetype)shareSingleton
{
    //单利
    static SingleTon *singleton;
    static dispatch_once_t oneToken;
    dispatch_once(&oneToken, ^{
        singleton = [[SingleTon alloc] init];
        NSUserDefaults * isDayDefault = [NSUserDefaults standardUserDefaults];
        singleton.isNight = [[isDayDefault objectForKey:@"isNight"] integerValue];
    });
    return singleton;
}

@end
